package com.jichaoyun.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jichaoyun.model.entity.PowerAlarm;

import com.jichaoyun.model.vo.AlarmVo;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
* @author ljc
* @description 针对表【powerAlarm】的数据库操作Mapper
* @createDate 2023-11-24 20:56:53
* @Entity com.jichaoyun.sys.entity.Poweralarm
*/
@Mapper

public interface PowerAlarmMapper extends BaseMapper<PowerAlarm> {
//    @Param(Constants.WRAPPER) QueryWrapper<UserVO> queryWrapper
    IPage<List<AlarmVo>> selectPowerPage(IPage<List<AlarmVo>> page,
                                         @Param("ItDnTime") String ItDnTime,
                                         @Param("ItDnTime") String next_ItDnTime,
                                         @Param("line_id") Integer line_id);

    PowerAlarm selectRecentOne(@Param("stationNo") int stationNo);
}




